
package com.platform.server.service;

import com.platform.server.entity.Withdraw;
import com.platform.server.response.pojo.ReturnData;

public interface WalletService {

    /**
     * 我的余额
     */
    ReturnData selectMywallet(String id);

    /**
     * 充值金额列表
     */
    ReturnData selectMoneyList();
    
	public ReturnData selectStatus();


    /**
     * 微信或支付宝充值
     */
    ReturnData topUpRecharge(String userid, String payMethod, String body, String subject, String payMoney, String type,
                             String discountid, String ip) throws Exception;

    /**
     * 设置支付密码
     */
    ReturnData setPayPassword(String userid, String password, String surePassword) throws Exception;

    /**
     * 微信或支付宝或钱包充值服务
     */
    ReturnData payServer(String userid, String payMethod, String body, String subject, String payMoney, String ip, String orderid,
                         String password, String discountid, String order_type) throws Exception;

    /**
     * 判断用户是否有设置支付密码
     */
    ReturnData judgePayPassword(String userid);

    /**
     * 主动提现
     */
    ReturnData autoWithdraw(Long id, String token);
    
	/**
	 * 校验支付密码
	 * @param userId
	 * @param payPwd
	 * @return
	 */
	ReturnData checkPayPwd(Integer userId, String payPwd);

}
